//
//  FriednInviterModel.m
//  project
//
//  Created by 黄建华 on 2018/8/9.
//  Copyright © 2018年 黄建华. All rights reserved.
//

#import "FriednInviterModel.h"

@implementation FriednInviterModel

- (instancetype)init {
    self = [super init];
    if (self) {
        _sign        = SN_Text(@"这家伙很懒");
        _remark      = @"";
        _nickName    = @"";
        _step        = 0;
        _calory      = 0;
        _distance    = 0;
        _duration    = 0;
        _lastInvTime = @"";
        _imagePathUrlString = @"";
        _isFriend = NO;
    }
    return self;
}

- (NSString *)showNickName {
    if (_remark.length == 0) {
        return _nickName;
    } else {
        if ([_remark isEqualToString:SN_Text(@"未填写备注")]) {
            return _nickName;
        } else {
            return _remark;
        }
    }
}

- (NSString *)showSign {
    if (_sign.length > 0) {
        return _sign;
    } else {
        return SN_Text(@"这家伙很懒");
    }
}

@end
